from simpy import Environment, Resource

from x_pc.core.carry import Carry


class CSC(Carry):
    """
    102 穿梭车
    穿梭车(CSC)
    """
    # 当前位置
    pos: tuple[int, int] = None
    # 穿梭车 当前所在层
    layer: int = None
    # 资源
    resource: Resource = None

    def __init__(self, env: Environment, name: str, kwargs):
        super().__init__(env, name, kwargs)
        self.resource = Resource(env)

    @staticmethod
    def device_type() -> int:
        return 102
